import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

import VueRouter from 'vue-router';
import App from './App'
import routes from './router'
import Header from '@/components/common/Header'
import iView from 'iview'
import QRCode from 'qrcodejs2'
// 使用 CSS
import 'iview/dist/styles/iview.css'
// 请求
import axios from 'axios';
Vue.prototype.$axios = axios;
import {http} from './unit/unit.js'
Vue.prototype.$http = http;
Vue.prototype.$qrcode=QRCode;

Vue.prototype.uid=25;
Vue.prototype.userinfo=null;

Vue.use(VueRouter);
Vue.use(iView);
Vue.config.productionTip = false

const RouterConfig = {
	routes: routes
};
const router = new VueRouter(RouterConfig);

import store from './store'
Vue.prototype.$store = store

new Vue({
	el: '#app',
	router: router,
	components: {
		store,
		App
	},
	template: '<App/>'
})
